package com.hpeu_12.day1231_homework;

public class LeetCode{
    public static void main(String[] args)
    {
        String s1 = "hello";
        String s2 = "hello";
        String s3 = "he"+"llo";
        String s4 = new String("hello");
        String s5 = new String("hello");
        char c[] = {'h', 'e', 'l', 'l', 'o'};
        System.out.println(s1==s2); //true
        System.out.println(s1==s3); //true
        System.out.println(s1==s4); //false
        System.out.println(s1.equals(s4)); //true
        System.out.println(s4==s5); //false
        System.out.println(s1.equals(c)); //false
    }
}